home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / cron093.zip / CRONTAB < prev    next >
Text File  |  1993-01-01  |  4KB  |  61 lines

  1.  
  2. #┌────────────────────────────────────────────────────────────────────────────┐
  3. #│ This file is an example crontab file, for use with cron.  The columns are  │
  4. #│ described as follows:                                                      │
  5. #│                                                                            │
  6. #│ Minute: 0-59      Day: 1-31    Day of week: 0-6 (0=Sunday, 6 = Saturday)   │
  7. #│ Hours:  0-23    Month: 1-12                                                │
  8. #│                                                                            │
  9. #│ Command: program to run, surrounded by double quotes (") - note that the   │
  10. #│          full path name should be used.                                    │
  11. #│ Args:    arguments to pass to the previous program                         │
  12. #│ Options: see Changes.doc                                                   │
  13. #│                                                                            │
  14. #│ Any of fields 1 through 5 can be a list of values separated by             │
  15. #│ commas.  A value can either be a number, or a pair of numbers              │
  16. #│ separated by a hyphen, indicating that the job is to be done for all       │
  17. #│ the times in the specified range.  If a field is an asterisk (*) it        │
  18. #│ means that the job is done for all possible values of the field.           │
  19. #│                                                                            │
  20. #│ All fields for one entry *must* appear on a single line.                   │
  21. #│                                                                            │
  22. #│ Note: the specification of days may be made by two fields (day of          │
  23. #│       the month and day of the week).  If both are specified as a          │
  24. #│       list of elements, both are adhered to.  For example,                 │
  25. #│                                                                            │
  26. #│       0 0 1,15 * 1                                                         │
  27. #│                                                                            │
  28. #│       would run a command on the first and fifteenth of each month         │
  29. #│       (at 00:00), as well as on every Monday.  To specify days by          │
  30. #│       only one field, the other field should be set to *.  For             │
  31. #│       example,                                                             │
  32. #│                                                                            │
  33. #│       0 0 * * 1                                                            │
  34. #│                                                                            │
  35. #│       would run a command only on Monday's (at 00:00).                     │
  36. #└────────────────────────────────────────────────────────────────────────────┘
  37.  
  38. #┌────────────────────────────────────────────────────────────────────────────┐
  39. #│ Min  Hour  Day  Mth  Day of Wk. Command           Args                     │
  40. #└────────────────────────────────────────────────────────────────────────────┘
  41.  
  42.    00   00    *    *      *   "c:\os2\cmd.exe"   "/C c:\bin\nightly.cmd";
  43.    00   00    *    *      0   "c:\os2\cmd.exe"   "/C c:\bin\weekly.cmd";
  44.    00   00    1    *      *   "c:\os2\cmd.exe"   "/C c:\bin\monthly.cmd";
  45.  
  46.     * * * * * "c:\os2\mdos\command.com" "c:\bin\test.bat"
  47.                       title="This is a test session"
  48.                       type=wvdm
  49.                       control=vis&setpos
  50.                       pos=(50,50,200,100);
  51.  
  52. #┌────────────────────────────────────────────────────────────────────────────┐
  53. #│ NOTE:  to run batch or command files, you should specify /C as the         │
  54. #│        first part of the argument string.  This tells the command          │
  55. #│        processor to exit after completion of the program.  If this is      │
  56. #│        *not* specified, the shell created to run the command file will     │
  57. #│        remain after the command file exits.                                │
  58. #└────────────────────────────────────────────────────────────────────────────┘
  59.  
  60.  
  61.